import { Body, Controller, Post } from '@nestjs/common';
import { ApiOkResponse, ApiOperation, ApiSecurity, ApiTags } from '@nestjs/swagger';
import { ADMIN_PREFIX } from '../../admin.constants';
import { ReportFormMonthlySummaryService } from './monthlySummary.service';

@ApiSecurity(ADMIN_PREFIX)
@ApiTags('每月综合绩效指标')
@Controller('monthlySummary')
export class ReportFormMonthlySummaryController {
  constructor(private monthlySummaryService: ReportFormMonthlySummaryService) {}

  @ApiOperation({ summary: '获取每月综合绩效指标' })
  @ApiOkResponse()
  @Post('list')
  async list(@Body() dto) {
    return await this.monthlySummaryService.list(dto);
  }
}
